package com.cyzy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cyzy.dto.ResponseDto;
import com.cyzy.pojo.Passenger;

import java.util.Map;

public interface UserService extends IService<Passenger> {
    Map<String,Object> login(String acc, String password);

    ResponseDto register(Passenger user);

    //获取短信验证码
    String getPhoneCode(String phone) throws Exception;

    //重置密码
    void forgotPassword(long userId,String password);
}
